/**  
 * All rights Reserved, Designed By www.shatayy.com
 * @Title:  ${file_name}   
 * @Package ${package_name}   
 * @Description:    ${todo}(用一句话描述该文件做什么)   
 * @author: 宁波沙塔信息技术有限公司     
 * @date:   ${date} ${time}   
 * @version V1.0 
 * @Copyright: ${year} www.tydic.com Inc. All rights reserved. 
 * 注意：本内容仅限于宁波沙塔信息技术股份有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
package com.nbst.model.base;

/**
 * @ClassName: Base
 * @Description:
 * @author 兵
 * @date 2017-8-17
 * 
 */

public class Base extends OrderBy {
	private String id; // ID

	private String pId; // 父ID

	private String name; // 名称

	private String phone; // 电话

	private String sfwzzjg; // 是否为组织结构 1为是

	private boolean nocheck;

	private boolean checked;

	private String flag;

	private String flag1;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getpId() {
		return pId;
	}

	public void setpId(String pId) {
		this.pId = pId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getSfwzzjg() {
		return sfwzzjg;
	}

	public void setSfwzzjg(String sfwzzjg) {
		this.sfwzzjg = sfwzzjg;
	}

	public boolean isNocheck() {
		return nocheck;
	}

	public void setNocheck(boolean nocheck) {
		this.nocheck = nocheck;
	}

	public boolean isChecked() {
		return checked;
	}

	public void setChecked(boolean checked) {
		this.checked = checked;
	}

	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
		if ("1".equals(flag)) {
			checked = true;
		} else if ("0".equals(flag)) {
			checked = false;
		}
	}

	public String getFlag1() {
		return flag1;
	}

	public void setFlag1(String flag1) {
		this.flag1 = flag1;
		if ("1".equals(flag1)) {
			nocheck = true;
		} else if ("0".equals(flag1)) {
			nocheck = false;
		}
	}

	@Override
	public String toString() {
		return "Base [id=" + id + ", pId=" + pId + ", name=" + name + ", phone=" + phone + ", sfwzzjg=" + sfwzzjg
				+ ", nocheck=" + nocheck + ", checked=" + checked + ", flag=" + flag + ", flag1=" + flag1 + "]";
	}

}